package threadpool;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.atomic.AtomicInteger;

public class Test {
    public static void main(String[] args) {
        ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2);
        AtomicInteger i = new AtomicInteger(10);
        System.out.println(i.get());
        System.out.println(i.addAndGet(-1));
        System.out.println(i.addAndGet(1));
    }
}
